﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OpenWeatherMap.API
{
    class ForecastItem
    {
        public long dt { get; set; }
        public DateTime dt_txt { get; set; }
        public WeatherMain main { get; set; }
        public Wind wind { get; set; }
        public WeatherDesc[] weather { get; set; }
        public Cloud clouds { get; set; }
        public Dictionary<String, decimal> snow { get; set; }
        public DateTime Date
        {
            get
            {
                DateTime cur = dt_txt.ToLocalTime();
                return new DateTime(cur.Year, cur.Month, cur.Day);
            }
        }
    }
}